// var d1 = new Date();
// var d2 = new Date(0);
// var d3 = new Date(2026,0,18);

// console.log(d1);
// console.log(d2);
// console.log(d3);

// console.log(new Date(Date.parse("2018-07-22")));
// console.log(new Date(Date.parse("2018/01/22")));
// console.log(new Date(Date.parse("2018")));

// console.log("-----------------------------------");
// console.log(new Date("2020-08-29"));

// var time1 = Date.parse("2022-04-03 10:56:23");
// console.log("-----------------------------------");
// console.log(time1);


var date = new Date();
var getDate = date.getDate();
console.log("getDate",getDate);

var getDay = date.getDay();
console.log("getDay",getDay);

var getMon = date.getMonth();
console.log("getMon",getMon);

console.log(date.getFullYear());
console.log(date.getHours());
console.log(date.getMinutes());
console.log(date.getMilliseconds());
console.log(date.getTime());

date.setDate(1);
date.setMonth(11)
date.setFullYear(2020);
date.setHours(11);
date.setMinutes(25);
date.setSeconds(11)
console.log(date);
console.log(date.toString());
console.log(date.toTimeString());
console.log(date.toDateString());
console.log(date.toLocaleDateString());
console.log(date.toLocaleString());
console.log(date.toLocaleTimeString());
console.log("-----------------------------------");

var dd = new Date(2018,8,1);
console.log(dd);
console.log(dd.getTime());
